/**
 * 默认文字类型
 */
export const textObj = {
  type: 'text',
  active: true,
  content: {
    text: 'test'
  },
  style: {
    backgroundColor: 'transparent',
    width: 300,
    height: 100,
    top: 10,
    left: 10,
    rotateAngle: 0,
    zIndex:0
  },
  font:{
    fontSize: 16,
    fontStyle: 'normal',
    fontWeight: 'normal',
    lineHeight: 16,
    letterSpacing: 0,
    textAlign: 'center',
    textDecoration:'none',
    color: '#000',
    marginLeft: 0,
    marginRight: 0,
    paddingTop: 0,
  }
}
/**
 * 需要转换px的字段
 */
export const numberPxArray = [
  'fontSize',
  'padding',
  'paddingTop',
  'paddingBottom',
  'paddingLeft',
  'paddingRight',
  'lineHeight',
  'marginLeft',
  'marginRight'
];

export const cssToText = {
  fontSize: '字体大小',
  fontStyle: '斜体',
  fontWeight: '加粗',
  lineHeight: '行高',
  letterSpacing: '字间距',
  textAlign: '对齐',
  textDecoration:'下划线',
  color: '颜色',
  backgroundColor: '背景色',
  marginLeft: '左偏移',
  marginRight: '右偏移',
};